home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 51 / Mac Magazin and MacEasy Magazine CD - Issue 51.iso / Software / Utilities / DragAnyWindow 4.5 / Windows that won’t redraw < prev   
Text File  |  1998-10-19  |  2KB  |  16 lines

  1. Alessandro Levi Montalcini
  2. C.so Re Umberto 10
  3. 10121 Torino
  4. Italy
  5.  
  6. mailto:alm@montalcini.com
  7. mailto:alm@kagi.com
  8. http://www.montalcini.com
  9. shareware registrations at http://order.kagi.com/?67
  10.  
  11. DragAnyWindow hint: windows that won't redraw
  12.  
  13. • Some applications don't redraw the contents of their windows when you release the mouse button after using DragAnyWindow to move a dialog. This is NOT DragAnyWindow's fault: the Macintosh system software doesn't handle window updates behind dialogs automatically, so it is up to the application to take care of it. Every well-written application, according to Apple, should have a special little piece of code to redraw windows behind a modal dialog. In fact, you'll notice that "bad" applications show the same behavior (blank windows) if you enter a screen saver while one of their dialogs is displayed. Applications that use movable dialogs (i.e. dialogs with a title bar) usually handle updates correctly. Please note that there is no way for DragAnyWindow to correct this problem: if your favourite application is not redrawing its windows, then you should ask the author to read his Inside Mac books again...
  14.  
  15. • Programmer's note: if your application doesn't handle updates correctly, you should add some code to the dialog filter procedure you're passing to ModalDialog and Alert (or add a dialog filter if you're not using one yet) to take care of update events. When the filter receives an update event for a window that is not the modal dialog itself, you should call your main window update routine and have it redraw the window contents as needed.
  16.